import Layout from '@/views/layout'
import Layout2 from '@/views/layout/index2'

let basefzRouter = {
  path: '/baseManagement',
  component: Layout2,
  redirect: 'noredirect',
  name: 'baseManagement',
  needAuth: true,
  meta: { title: '基础数据', icon: 'basicsdata' },
  children: [
    {
      path: '/breedManage',
      component: Layout,
      meta: { title: '养殖企业', breadcrumb: false  },
      redirect: '/breedManage/index',
      name: 'breedingCompany',
      needAuth: true,
      children: [{
        path: 'index',
        name: 'breedManage',
        component: () => import('@/views/baseinfoManage/breed'),
        meta: { title: '养殖企业', noCache: true}
      },
      {
        path: 'view/:type',
        name: 'breedManageView',
        component: () => import('@/views/baseinfoManage/view'),
        meta: { title: '查看养殖企业', noCache: true, activeMenu: '/breedManage/index'},
        hidden: true
      },
      {
        path: 'add/:type',
        name: 'breedManageAdd',
        component: () => import('@/views/baseinfoManage/breedAdd'),
        meta: { title: '新增养殖企业', activeMenu: '/breedManage/index'},
        hidden: true
      },
      {
        path: 'edit/:type',
        name: 'breedManageEdit',
        component: () => import('@/views/baseinfoManage/edit'),
        meta: { title: '编辑养殖企业', activeMenu: '/breedManage/index'},
        hidden: true
      }]
    },
    {
      path: '/slaughterManage',
      component: Layout,
      meta: { title: '屠宰企业', breadcrumb: false  },
      redirect: '/slaughterManage/index',
      name: 'slaughteringEnterprise',
      needAuth: true,
      children: [{
        path: 'index',
        name: 'slaughterManage',
        component: () => import('@/views/baseinfoManage/slaughter'),
        meta: { title: '屠宰企业', noCache: true}
      },
      {
        path: 'view/:type',
        name: 'slaughterManageView',
        component: () => import('@/views/baseinfoManage/view'),
        meta: { title: '查看屠宰企业', noCache: true, activeMenu: '/slaughterManage/index'},
        hidden: true
      },
      {
        path: 'add/:type',
        name: 'slaughterManageAdd',
        component: () => import('@/views/baseinfoManage/slaughterAdd'),
        meta: { title: '新增屠宰企业', activeMenu: '/slaughterManage/index'},
        hidden: true
      },
      {
        path: 'edit/:type',
        name: 'slaughterManageEdit',
        component: () => import('@/views/baseinfoManage/edit'),
        meta: { title: '编辑屠宰企业', activeMenu: '/slaughterManage/index' },
        hidden: true
      }]
    },
    {
      path: '/harmlessManage',
      component: Layout,
      meta: { title: '无害化处理中心', breadcrumb: false  },
      redirect: '/harmlessManage/index',
      name: 'harmlessTreatmentCenter',
      needAuth: true,
      children: [{
        path: 'index',
        name: 'harmlessManage',
        component: () => import('@/views/baseinfoManage/harmless'),
        meta: { title: '无害化处理中心', noCache: true}
      },
      {
        path: 'view/:type',
        name: 'harmlessManageView',
        component: () => import('@/views/baseinfoManage/view'),
        meta: { title: '查看无害化处理中心', noCache: true, activeMenu: '/harmlessManage/index' },
        hidden: true
      },
      {
        path: 'add/:type',
        name: 'harmlessManageAdd',
        component: () => import('@/views/baseinfoManage/harmlessAdd'),
        meta: { title: '新增无害化处理中心', activeMenu: '/harmlessManage/index' },
        hidden: true
      },
      {
        path: 'edit/:type',
        name: 'harmlessManageEdit',
        component: () => import('@/views/baseinfoManage/edit'),
        meta: { title: '编辑无害化处理中心', activeMenu: '/harmlessManage/index' },
        hidden: true
      }]
    },
    {
      path: '/monitorManage',
      component: Layout,
      meta: { title: '市场价格智能监测点', breadcrumb: false  },
      redirect: '/monitorManage/index',
      name: 'marketPriceMonitoringPoint',
      needAuth: true,
      children: [{
        path: 'index',
        name: 'monitorManage',
        component: () => import('@/views/baseinfoManage/monitor'),
        meta: { title: '市场价格智能监测点', noCache: true,}
      },
      {
        path: 'view/:type',
        name: 'monitorManageView',
        component: () => import('@/views/baseinfoManage/view'),
        meta: { title: '查看市场价格智能监测点', noCache: true, activeMenu: '/monitorManage/index' },
        hidden: true
      },
      {
        path: 'add/:type',
        name: 'monitorManageAdd',
        component: () => import('@/views/baseinfoManage/monitorAdd'),
        meta: { title: '新增市场价格智能监测点', activeMenu: '/monitorManage/index' },
        hidden: true
      },
      {
        path: 'edit/:type',
        name: 'monitorManageEdit',
        component: () => import('@/views/baseinfoManage/edit'),
        meta: { title: '编辑市场价格智能监测点', activeMenu: '/monitorManage/index' },
        hidden: true
      }]
    }
  ]
}
export default basefzRouter